#ifndef __M3G_VIEWER_CONSTANTS_HPP__
#define __M3G_VIEWER_CONSTANTS_HPP__

/**
 * 主にウィンドウサイズはボタンサイズの設定.
 */
namespace m3g_viewer
{
    // MainView
    const int MAIN_VIEW_WIDTH  = 340;
    const int MAIN_VIEW_HEIGHT = 340;

    // MenuBar
    const int MENU_BAR_X      = 0;
    const int MENU_BAR_Y      = 0;
    const int MENU_BAR_WIDTH  = MAIN_VIEW_WIDTH;
    const int MENU_BAR_HEIGHT = 20;

    // IconBar
    const int ICON_BAR_X      = 0;
    const int ICON_BAR_Y      = MENU_BAR_Y + MENU_BAR_HEIGHT;
    const int ICON_BAR_WIDTH  = MAIN_VIEW_WIDTH;
    const int ICON_BAR_HEIGHT = 20;

    const int ICON_WIDTH  = 20;
    const int ICON_HEIGHT = 20;
    const int ICON_MARGIN = 2;
    const int ICON_REAL_WIDTH  = ICON_WIDTH  - ICON_MARGIN*2;
    const int ICON_REAL_HEIGHT = ICON_HEIGHT - ICON_MARGIN*2;

    // StatusBar
    const int STATUS_BAR_WIDTH  = MAIN_VIEW_WIDTH;
    const int STATUS_BAR_HEIGHT = 20;
    const int STATUS_BAR_X      = 0;
    const int STATUS_BAR_Y      = MAIN_VIEW_HEIGHT - STATUS_BAR_HEIGHT;

    // TimelineBar
    const int TIMELINE_BAR_WIDTH  = MAIN_VIEW_WIDTH;
    const int TIMELINE_BAR_HEIGHT = 60;
    const int TIMELINE_BAR_X      = 0;
    const int TIMELINE_BAR_Y      = MAIN_VIEW_HEIGHT - (STATUS_BAR_HEIGHT + TIMELINE_BAR_HEIGHT);

    const int PLAY_BUTTON_X           = TIMELINE_BAR_X;
    const int PLAY_BUTTON_Y           = TIMELINE_BAR_Y;
    const int PLAY_BUTTON_WIDTH       = 60;
    const int PLAY_BUTTON_HEIGHT      = 60;
    const int PLAY_BUTTON_MARGIN      = 10;
    const int PLAY_BUTTON_REAL_WIDTH  = PLAY_BUTTON_WIDTH  - PLAY_BUTTON_MARGIN*2;
    const int PLAY_BUTTON_REAL_HEIGHT = PLAY_BUTTON_HEIGHT - PLAY_BUTTON_MARGIN*2;

    const int TIME_SLIDER_X           = PLAY_BUTTON_X + PLAY_BUTTON_WIDTH;
    const int TIME_SLIDER_Y           = PLAY_BUTTON_Y;
    const int TIME_SLIDER_WIDTH       = 220;
    const int TIME_SLIDER_HEIGHT      = 40;
    const int TIME_SLIDER_MARGIN      = 10;
    const int TIME_SLIDER_REAL_WIDTH  = TIME_SLIDER_WIDTH  - TIME_SLIDER_MARGIN*2;
    const int TIME_SLIDER_REAL_HEIGHT = TIME_SLIDER_HEIGHT - TIME_SLIDER_MARGIN*2;

    const int REPEAT_BUTTON_X           = TIME_SLIDER_X + TIME_SLIDER_WIDTH;
    const int REPEAT_BUTTON_Y           = TIME_SLIDER_Y;
    const int REPEAT_BUTTON_WIDTH       = 60;
    const int REPEAT_BUTTON_HEIGHT      = 60;
    const int REPEAT_BUTTON_MARGIN      = 10;
    const int REPEAT_BUTTON_REAL_WIDTH  = REPEAT_BUTTON_WIDTH  - REPEAT_BUTTON_MARGIN*2;
    const int REPEAT_BUTTON_REAL_HEIGHT = REPEAT_BUTTON_HEIGHT - REPEAT_BUTTON_MARGIN*2;

    // M3gView
    const int M3G_VIEW_X      = 0;
    const int M3G_VIEW_Y      = ICON_BAR_Y + ICON_BAR_HEIGHT;
    const int M3G_VIEW_WIDTH  = MAIN_VIEW_WIDTH;
    const int M3G_VIEW_HEIGHT = MAIN_VIEW_HEIGHT - (MENU_BAR_HEIGHT + ICON_BAR_HEIGHT + TIMELINE_BAR_HEIGHT + STATUS_BAR_HEIGHT);

    // TreeView
    const int TREE_VIEW_WIDTH  = 240;
    const int TREE_VIEW_HEIGHT = 200;

    const int OBJECT_TREE_X           = 10;
    const int OBJECT_TREE_Y           = 10;
    const int OBJECT_TREE_WIDTH       = TREE_VIEW_WIDTH;
    const int OBJECT_TREE_HEIGHT      = TREE_VIEW_HEIGHT;
    const int OBJECT_TREE_MARGIN      = 10;
    const int OBJECT_TREE_REAL_WIDTH  = OBJECT_TREE_WIDTH  - OBJECT_TREE_MARGIN*2;
    const int OBJECT_TREE_REAL_HEIGHT = OBJECT_TREE_HEIGHT - OBJECT_TREE_MARGIN*2;

    // ObjectView
    const int OBJECT_VIEW_WIDTH  = 240;
    const int OBJECT_VIEW_HEIGHT = 200;

    const int OBJECT_TABS_X           = 10;
    const int OBJECT_TABS_Y           = 10;
    const int OBJECT_TABS_WIDTH       = OBJECT_VIEW_WIDTH;
    const int OBJECT_TABS_HEIGHT      = OBJECT_VIEW_HEIGHT;
    const int OBJECT_TABS_MARGIN      = 10;
    const int OBJECT_TABS_REAL_WIDTH  = OBJECT_TABS_WIDTH  - OBJECT_TABS_MARGIN*2;
    const int OBJECT_TABS_REAL_HEIGHT = OBJECT_TABS_HEIGHT - OBJECT_TABS_MARGIN*2;


} // namespace m3g_viewer

#endif

